package com.evosoft.dao;

public class DAOFactory {
	
	private static DAOFactory instance = null;
	
	private DAOFactory(){
    }
	
	public synchronized static DAOFactory getInstance(){
        if( instance == null ) {
            instance = new DAOFactory();
        }
        
        return instance;
    }
	
	public EmpresaDAO getEmpresaDAO() {
        return EmpresaDAO.getInstance();
    }
	
	public PersonaDAO getPersonaDAO() {
             return PersonaDAO.getInstance();
        }
        
        
        public RolDAO getRolDAO() {
             return RolDAO.getInstance();
        }
}
